package com.cx.common.winxin.model;

import com.cx.common.utils.New;
import org.codehaus.jackson.annotate.JsonWriteNullProperties;

import java.util.Map;

/**
 * @Author:cxy
 * @Date:2019/10/24 15:11
 * 
 */
@SuppressWarnings("deprecation")
@JsonWriteNullProperties(value = false)
public class WinxinNoticeVO {

	/** userId用|分隔 "UserID1|UserID2|UserID3" */
	private String touser;

	/** 部门ID列表用|分隔 "PartyID1 | PartyID2" */
	private String toparty = "2";

	/** 标签ID列表用|分隔 "TagID1 | TagID2" */
	private String totag;

	/** 消息类型 */
	private String msgtype = "text";

	/** 企业应用的id */
	private Integer agentid = 1000002;

	/** 消息内容 */
	private Map<String, String> text = New.hashMap(2);

	/** 是否是保密消息 0表示否，1表示是，默认0 */
	private boolean safe = true;

	public static WinxinNoticeVO valueOf() {
		WinxinNoticeVO vo = new WinxinNoticeVO();
		return vo;
	}

	public String getTouser() {
		return touser;
	}

	public void setTouser(String touser) {
		this.touser = touser;
	}

	public String getToparty() {
		return toparty;
	}

	public void setToparty(String toparty) {
		this.toparty = toparty;
	}

	public String getTotag() {
		return totag;
	}

	public void setTotag(String totag) {
		this.totag = totag;
	}

	public String getMsgtype() {
		return msgtype;
	}

	public void setMsgtype(String msgtype) {
		this.msgtype = msgtype;
	}

	public Integer getAgentid() {
		return agentid;
	}

	public void setAgentid(Integer agentid) {
		this.agentid = agentid;
	}

	public boolean isSafe() {
		return safe;
	}

	public void setSafe(boolean safe) {
		this.safe = safe;
	}

	public Map<String, String> getText() {
		return text;
	}

	public void setText(Map<String, String> text) {
		this.text = text;
	}

	public void sendText(String content) {
		this.text.put("content", content);
	}

}
